<script setup>
// 使用router-view来显示路由组件
</script>

<template>
  <div id="app">
    <RouterView />
  </div>
</template>

<style>
#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  font-size: 13px; /* 减小全局字体大小 */
  line-height: 1.5; /* 减小行高 */
  color: #303133;
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
  width: 6px; /* 减小滚动条宽度 */
  height: 6px; /* 减小滚动条高度 */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px; /* 减小圆角 */
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px; /* 减小圆角 */
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Element Plus 组件样式优化 */
.el-button {
  border-radius: 4px; /* 减小圆角 */
  font-weight: 500;
  padding: 8px 15px; /* 减小按钮内边距 */
  font-size: 13px; /* 减小按钮字体大小 */
}

.el-button--primary {
  background: linear-gradient(45deg, #409eff, #337ecc);
  border-color: #409eff;
  color: white;
}

.el-button--primary:hover {
  background: linear-gradient(45deg, #66b1ff, #409eff);
  border-color: #66b1ff;
}

.el-button--primary:active {
  background: linear-gradient(45deg, #3a8ee6, #2b6cb0);
  border-color: #3a8ee6;
}

.el-button--default {
  border-color: #dcdfe6;
  color: #606266;
}

.el-button--default:hover {
  border-color: #409eff;
  color: #409eff;
  background-color: #ecf5ff;
}

.el-button--default:active {
  border-color: #3a8ee6;
  color: #3a8ee6;
  background-color: #e6f0fa;
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
  border-radius: 4px !important; /* 统一输入框圆角 */
}

.el-input__inner,
.el-textarea__inner {
  font-size: 13px !important; /* 统一输入框字体大小 */
}

.el-form-item__label {
  font-size: 13px !important; /* 统一表单标签字体大小 */
}
</style>
